import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";

@Injectable()
export class ActivityDetailProvider  {

    constructor(private http: HttpClient) {
    }

    getAllClientByActivity (params) {
        return this.http.get(`/campaign/v1/app/campaignCust/list`, {
            params
        });
    }

    getActivityDetailById (id, notLoading) {
        return this.http.get(`/campaign/v1/app/detail`, {
            params: {
                id,
                notLoading
            }
        });
    }

    getActivityShare(activityId:string){
        return this.http.get(`/campaign/v1/activitySharing`,{
            params:{
                campaignId:activityId
            }
        });
    }


}
